// #ifdef H5
import VConsole from 'vconsole'
// #endif

export function setupVConsole() {
  // #ifdef H5
  if (!VConsole.instance) {
    VConsole.instance = new VConsole()
  }
  return VConsole.instance
  // #endif
}

export function destroyVConsole() {
  // #ifdef H5
  if (VConsole.instance) {
    VConsole.instance.destroy()
    VConsole.instance = undefined
  }
  // #endif
}
